#include "PatientModel.h"


namespace UserManagementSystem {

PatientModel::PatientModel(QObject *parent)
{

}

QVariant PatientModel::data(const QModelIndex &index, int role) const
{
    //如果查询索引无效或者不是允许展示的模式，则返回空数据
    if(!index.isValid()||role!=Qt::DisplayRole){
        return {};
    }

    qDebug()<<"index:"<<index<<"index.row():"<<index.row();
    return QVariant::fromValue(m_data.at(index.row()));
}



}
